package com.diandian.backend.product.param;

import com.diandian.base.boot.starter.exception.DefaultException;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.diandian.backend.product.dto.ProductOfflineInfoPictureVideoListParamDTO;

import java.io.Serializable;
import java.util.Date;

public class ProductOfflineInfoPictureVideoListParam implements Serializable {

	private String belongEql;
	private String productCodeEql;
	private String createUserIdEql;
	private String createUserIdLike;
	private String createUesrNameEql;
	private String createUesrNameLike;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTimeBefore;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTimeAfter;
	private String updateUserIdEql;
	private String updateUserIdLike;
	private String updateUserNameEql;
	private String updateUserNameLike;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTimeBefore;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updateTimeAfter;
	private Integer del;
	private String sourceTypeEql;
	private String sourceTypeLike;
	private String sourceIdEql;
	private String sourceIdLike;
	private String dataTypeEql;
	private String dataTypeLike;
	private String fileTypeEql;
	private String fileTypeLike;
	private String urlEql;
	private String urlLike;
	private Integer recommend;
	private Integer sequence;

	public void check(){
		if(this.belongEql == null || "".equals(this.belongEql) ){
			throw new DefaultException("归属标识不能为空");
		}
		if(this.productCodeEql == null || "".equals(this.productCodeEql) ){
			throw new DefaultException("商品编码不能为空");
		}
	}

	public ProductOfflineInfoPictureVideoListParamDTO toDTO(){
		ProductOfflineInfoPictureVideoListParamDTO result = new ProductOfflineInfoPictureVideoListParamDTO();
		result.setBelongEql(this.belongEql);
		result.setProductCodeEql(this.productCodeEql);
		result.setCreateUserIdEql(this.createUserIdEql);
		result.setCreateUserIdLike(this.createUserIdLike);
		result.setCreateUesrNameEql(this.createUesrNameEql);
		result.setCreateUesrNameLike(this.createUesrNameLike);
		result.setCreateTimeBefore(this.createTimeBefore);
		result.setCreateTimeAfter(this.createTimeAfter);
		result.setUpdateUserIdEql(this.updateUserIdEql);
		result.setUpdateUserIdLike(this.updateUserIdLike);
		result.setUpdateUserNameEql(this.updateUserNameEql);
		result.setUpdateUserNameLike(this.updateUserNameLike);
		result.setUpdateTimeBefore(this.updateTimeBefore);
		result.setUpdateTimeAfter(this.updateTimeAfter);
		result.setDel(this.del);
		result.setSourceTypeEql(this.sourceTypeEql);
		result.setSourceTypeLike(this.sourceTypeLike);
		result.setSourceIdEql(this.sourceIdEql);
		result.setSourceIdLike(this.sourceIdLike);
		result.setDataTypeEql(this.dataTypeEql);
		result.setDataTypeLike(this.dataTypeLike);
		result.setFileTypeEql(this.fileTypeEql);
		result.setFileTypeLike(this.fileTypeLike);
		result.setUrlEql(this.urlEql);
		result.setUrlLike(this.urlLike);
		result.setRecommend(this.recommend);
		result.setSequence(this.sequence);
		return result;
	}

	public String getBelongEql() {
		return belongEql;
	}

	public void setBelongEql(String belongEql) {
		this.belongEql = belongEql;
	}

	public String getProductCodeEql() {
		return productCodeEql;
	}

	public void setProductCodeEql(String productCodeEql) {
		this.productCodeEql = productCodeEql;
	}

	public String getCreateUserIdEql() {
		return createUserIdEql;
	}
	public void setCreateUserIdEql(String createUserIdEql) {
		this.createUserIdEql = createUserIdEql;
	}
	public String getCreateUserIdLike() {
		return createUserIdLike;
	}
	public void setCreateUserIdLike(String createUserIdLike) {
		this.createUserIdLike = createUserIdLike;
	}
	public String getCreateUesrNameEql() {
		return createUesrNameEql;
	}
	public void setCreateUesrNameEql(String createUesrNameEql) {
		this.createUesrNameEql = createUesrNameEql;
	}
	public String getCreateUesrNameLike() {
		return createUesrNameLike;
	}
	public void setCreateUesrNameLike(String createUesrNameLike) {
		this.createUesrNameLike = createUesrNameLike;
	}
	public Date getCreateTimeBefore() {
		return createTimeBefore;
	}
	public void setCreateTimeBefore(Date createTimeBefore) {
		this.createTimeBefore = createTimeBefore;
	}
	public Date getCreateTimeAfter() {
		return createTimeAfter;
	}
	public void setCreateTimeAfter(Date createTimeAfter) {
		this.createTimeAfter = createTimeAfter;
	}
	public String getUpdateUserIdEql() {
		return updateUserIdEql;
	}
	public void setUpdateUserIdEql(String updateUserIdEql) {
		this.updateUserIdEql = updateUserIdEql;
	}
	public String getUpdateUserIdLike() {
		return updateUserIdLike;
	}
	public void setUpdateUserIdLike(String updateUserIdLike) {
		this.updateUserIdLike = updateUserIdLike;
	}
	public String getUpdateUserNameEql() {
		return updateUserNameEql;
	}
	public void setUpdateUserNameEql(String updateUserNameEql) {
		this.updateUserNameEql = updateUserNameEql;
	}
	public String getUpdateUserNameLike() {
		return updateUserNameLike;
	}
	public void setUpdateUserNameLike(String updateUserNameLike) {
		this.updateUserNameLike = updateUserNameLike;
	}
	public Date getUpdateTimeBefore() {
		return updateTimeBefore;
	}
	public void setUpdateTimeBefore(Date updateTimeBefore) {
		this.updateTimeBefore = updateTimeBefore;
	}
	public Date getUpdateTimeAfter() {
		return updateTimeAfter;
	}
	public void setUpdateTimeAfter(Date updateTimeAfter) {
		this.updateTimeAfter = updateTimeAfter;
	}
	public Integer getDel() {
		return del;
	}
	public void setDel(Integer del) {
		this.del = del;
	}
	public String getSourceTypeEql() {
		return sourceTypeEql;
	}
	public void setSourceTypeEql(String sourceTypeEql) {
		this.sourceTypeEql = sourceTypeEql;
	}
	public String getSourceTypeLike() {
		return sourceTypeLike;
	}
	public void setSourceTypeLike(String sourceTypeLike) {
		this.sourceTypeLike = sourceTypeLike;
	}
	public String getSourceIdEql() {
		return sourceIdEql;
	}
	public void setSourceIdEql(String sourceIdEql) {
		this.sourceIdEql = sourceIdEql;
	}
	public String getSourceIdLike() {
		return sourceIdLike;
	}
	public void setSourceIdLike(String sourceIdLike) {
		this.sourceIdLike = sourceIdLike;
	}
	public String getDataTypeEql() {
		return dataTypeEql;
	}
	public void setDataTypeEql(String dataTypeEql) {
		this.dataTypeEql = dataTypeEql;
	}
	public String getDataTypeLike() {
		return dataTypeLike;
	}
	public void setDataTypeLike(String dataTypeLike) {
		this.dataTypeLike = dataTypeLike;
	}
	public String getFileTypeEql() {
		return fileTypeEql;
	}
	public void setFileTypeEql(String fileTypeEql) {
		this.fileTypeEql = fileTypeEql;
	}
	public String getFileTypeLike() {
		return fileTypeLike;
	}
	public void setFileTypeLike(String fileTypeLike) {
		this.fileTypeLike = fileTypeLike;
	}
	public String getUrlEql() {
		return urlEql;
	}
	public void setUrlEql(String urlEql) {
		this.urlEql = urlEql;
	}
	public String getUrlLike() {
		return urlLike;
	}
	public void setUrlLike(String urlLike) {
		this.urlLike = urlLike;
	}
	public Integer getRecommend() {
		return recommend;
	}
	public void setRecommend(Integer recommend) {
		this.recommend = recommend;
	}
	public Integer getSequence() {
		return sequence;
	}
	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}
}
